import Vue from 'vue'
import Router from 'vue-router'
import Homepage from '@/views/Homepage.vue'
import Classification from '@/views/Classification.vue'
import Order from '@/views/Order.vue'
import MyVue from '@/views/MyVue.vue'
import VueRouter from 'vue-router'
Vue.use(Router)
const router = new VueRouter({
  routes: [
    /* 重定向   */
    {
      path: '/',
      redirect: '/class',
    },
    {
      path: '/homepage',
      component: Homepage,
    },
    {
      path: '/class',
      component: Classification,
    },
    {
      path: '/order',
      component: Order,
    },
    {
      path: '/my',
      component: MyVue,
    },
  ],
})
export default router
